<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>cube</title>
    <style>
        body{
            height: 100vh;
            background-image: radial-gradient(#000,lightblue,#000);
        }
        .box>div{
            width: 200px;
            height: 200px;
            border: 1px solid #62b5ec;
            font-size: 80px;
            text-align: center;
            line-height: 200px;
            position: absolute;
            color: lightskyblue;
            background-color: rgba(255,255,255,.5);
            border-radius: 30px;
            box-shadow: 0 0 60px 0 lightblue;
        }
        .show{
            perspective: 800px;
        }
        .box{
            transform-style: preserve-3d;
            width: 200px;
            height: 200px;
            margin: 200px auto;
            animation: turn 5s linear infinite;
        }
        .box:hover{
            animation-play-state: paused;
        }
        .box>.p1{
            transform: translateZ(100px);
        }
        .box>.p2{
            transform: translateZ(-100px) scaleX(-1);
        }
        .box>.p3{
            transform: rotateY(90deg) translateZ(100px);
        }
        .box>.p4{
            transform: rotateY(90deg) translateZ(-100px) scaleX(-1);
        }
        .box>.p5{
            transform: rotateX(90deg) translateZ(100px);
        }
        .box>.p6{
            transform: rotateX(90deg) translateZ(-100px) scaleX(-1);
        }
        @keyframes turn{
            0%{
                transform: rotate3d(1,1,0,360deg);
            }
        }
    </style>
</head>
<body>
<div class="show">
    <div class="box">
        <div class="p1">1</div>
        <div class="p2">2</div>
        <div class="p3">3</div>
        <div class="p4">4</div>
        <div class="p5">5</div>
        <div class="p6">6</div>
    </div>
</div>
</body>
</html>